# -*- encoding: utf-8 -*-
"""
@File : reverse.py
@Time : 2021/4/5 21:45
@Author : Linleil
"""


def reverse(x):
    """
    x:int
    return:int
    """
    if -(2**31) < x < (2**31):
        if x < 0:
            x = str(x)
            new = x[1:]
            new = int(new[::-1])
            new = -1 * new
        else:
            x = str(x)
            new = int(x[::-1])
        return new
    else:
        return 0


y = reverse(-2**34)
print(y)
